<h1><?=$name?></h1>


<form action="<?=url("default:addCompare/with:{$name}")?>" method="post">

	<input type="text" name="compare" />
	<input type="submit" value="添加比较" />
</form>

<?php if (!empty($tags)): ?>
	标签:
	<?php foreach ($tags as $tag): ?>
		<?=$tag?>
	<?php endforeach ?>
<?php endif ?>


<form action="<?=url("default:addTag/name:{$name}")?>" method="post">
	<input type="text" name="tag" size="20" />
	<input type="submit" value="添加标签" />
</form>

<p>现在，你可以介绍介绍它</p>
<form action="<?=url("default:addObjAttr/name:{$name}")?>" method="post">
    <ul>
	<?php if (!empty($attrs)): ?>
    <?php foreach ($attrs as $attr): ?>
        <li>在<b><?=$attr['field']?></b>方面, <?=$attr['descrip']?></li>
    <?php endforeach ?>
	<?php endif ?>
    </ul>
    <div>
        <label>在<input type="text" name="field" size="20" />方面,<b><?=$name?></b>表现如何? </label>
    </div>
    <div>
        <textarea name="descrip" cols="60" rows="7">我来介绍介绍...</textarea>
    </div>
    <input type="submit" value="添加" />
</form>